package com.ruicar.afs.cloud.afscase.channel.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruicar.afs.cloud.afscase.channel.common.ChannelWitnessCondition;
import com.ruicar.afs.cloud.afscase.channel.entity.ChannelWitnessInfo;
import com.ruicar.afs.cloud.afscase.channel.mapper.ChannelWitnessInfoMapper;
import com.ruicar.afs.cloud.afscase.channel.service.ChannelWitnessInfoService;
import com.ruicar.afs.cloud.afscase.channel.vo.ChannelWitnessInfoVO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@AllArgsConstructor
@Data
@Slf4j
public class ChannelWitnessInfoImpl extends ServiceImpl<ChannelWitnessInfoMapper, ChannelWitnessInfo> implements ChannelWitnessInfoService {
    private ChannelWitnessInfoMapper channelWitnessInfoMapper;

    /**
     * 查询见证人信息列表
     *
     * @param page
     * @param condition
     */
    @Override
    public IPage<ChannelWitnessInfoVO> getLoanWitnessInfoList(Page page, ChannelWitnessCondition condition) {
        return baseMapper.getLoanWitnessInfoList(page, condition);
    }
}
